using System;
using System.Xml;
using System.Xml.Serialization;
namespace SERP.DAO{
	/********************************BEGIN UserRolesEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:09/03/2013 19:09:04</para>
	/// <para>Class Name: UserRolesEntity</para>
	/// <para>Description: ClassUserRolesEntity store data of table UserRoles</para>
	///</summary>

	[Serializable]
	public partial class UserRolesEntity{


		private bool _InternalChangedIsNullUserRoleId=true;
		private bool _IsNullUserRoleId=true;
		private bool _InternalChangedIsNullUserId=true;
		private bool _IsNullUserId=true;
		private bool _InternalChangedIsNullRoleId=true;
		private bool _IsNullRoleId=true;
		private int _UserRoleId;
		private int _UserId;
		private int _RoleId;
		[XmlElement(ElementName = "IsNullUserRoleId")]
		public bool IsNullUserRoleId{
			get{return _IsNullUserRoleId;}
			set{if(!_InternalChangedIsNullUserRoleId)_IsNullUserRoleId=value;}
		}
		[XmlElement(ElementName = "IsNullUserId")]
		public bool IsNullUserId{
			get{return _IsNullUserId;}
			set{if(!_InternalChangedIsNullUserId)_IsNullUserId=value;}
		}
		[XmlElement(ElementName = "IsNullRoleId")]
		public bool IsNullRoleId{
			get{return _IsNullRoleId;}
			set{if(!_InternalChangedIsNullRoleId)_IsNullRoleId=value;}
		}
		[XmlElement(ElementName = "UserRoleId")]
		public int UserRoleId{
			get{return _UserRoleId;}
			set{
				_UserRoleId=value;
				if(_UserRoleId!=null){
					_IsNullUserRoleId=false;
					_InternalChangedIsNullUserRoleId=true;
				}
			}
		}
		[XmlElement(ElementName = "UserId")]
		public int UserId{
			get{return _UserId;}
			set{
				_UserId=value;
				if(_UserId!=null){
					_IsNullUserId=false;
					_InternalChangedIsNullUserId=true;
				}
			}
		}
		[XmlElement(ElementName = "RoleId")]
		public int RoleId{
			get{return _RoleId;}
			set{
				_RoleId=value;
				if(_RoleId!=null){
					_IsNullRoleId=false;
					_InternalChangedIsNullRoleId=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END UserRolesEntityBase*****************************************/
	/*****************************************************************************************************/
}

